-- GENERATED SPELL FOR [Defias Blackguard] --


function spell0_636(pUnit, Event) --@Faded,Self--
pUnit:FullCastSpellOnTarget(6408,pUnit)
pUnit:RegisterEvent('Sorts_636', 630, 1)
end

function spell1_636(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(1785,pUnit)
pUnit:RegisterEvent('Sorts_636', 0, 1)
end

function Sorts_636(pUnit, Event)
local choix_sorts_636 = math.random(0, 1)
if choix_sorts_636 == 0 then
pUnit:RegisterEvent('spell0_636', 1, 1)
end
if choix_sorts_636 == 1 then
pUnit:RegisterEvent('spell1_636', 1, 1)
end
end

function mob636_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_636', math.random(1500, 3000), 1)
end

function mob636_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob636_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob636_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(636, 1, 'mob636_Action')
RegisterUnitEvent(636, 2, 'mob636_Leave')
RegisterUnitEvent(636, 3, 'mob636_Kill')
RegisterUnitEvent(636, 4, 'mob636_Die')
